"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app;

  //食圈列表
  router.get("/eclipse", controller.eclipsetable.test); //获取食圈列表
  router.put("/eclipseUp/:id", controller.eclipsetable.update); //修改食圈状态
  router.put("/eclipseUpCon/:id", controller.eclipsetable.update); //修改食圈关注
  router.put("/eclipsePun/:id", controller.eclipsetable.update); //修改食圈关注


  router.get('/', controller.user1.index);
  router.get('/my', controller.wzhmy.index);
  router.get('/fensi', controller.fensilist.index);
  router.get("/eclipse", controller.eclipsetable.index); //获取食圈列表

  router.get('/homelist', controller.homelist.index)
  router.get('/recommendList', controller.recommendlist.index) //首页分类
  router.get('/fenleilist', controller.fenleilist.index)


  // router.delete('/api/orderzzm/:id', controller.orderzzm.destroy);//删除
  // 获取 controller.user1.index   user1要改成后台数据库的名字
  // router.get('/api/findschool', controller.school.index);//查找
  // router.get('/api/school/:id', controller.school.show);//查找
  // router.post('/api/addschool', controller.school.create)//增加
  // router.delete('/api/delschool/:id', controller.school.destroy);//删除
  // router.put('/api/xgschool/:id', controller.school.update); // 更新

};
